using System;
using System.Diagnostics;

namespace simpleshell
{
	class MainClass
	{
		public static void Main(string[] args)
		{
			string input = "";
			Process p = new Process();
			
			Console.WriteLine("********************************************************");
    		Console.WriteLine("** Simple Shell");
			Console.WriteLine("** Developed in Mono");
		    Console.WriteLine("** Type exit to exit the shell");
    		Console.WriteLine("********************************************************\n");
			
			while (true)
			{
				Console.Write("$ ");
				input = Console.ReadLine();
								
				if (input=="")
				{
					continue;
				}
				else if (input=="exit")
				{
					Environment.Exit(1);
				}				
				else
				{
					p = Process.Start(input);
					p.WaitForExit();
				}
			}
				
		}
	}
}